package sc.common.test.hotws;

import javax.xml.ws.Endpoint;

import org.junit.Test;

import sc.common.test.TestUtil;

public class ServerTest2 //extends SpringTest
{

	@Test
	public void test1() {
		try {
			System.out.println("Starting Server");
	        HelloWorldImpl implementor = new HelloWorldImpl();
	        String address = "http://localhost:9000/helloWorld";
	        Endpoint.publish(address, implementor);
			
//			System.out.println("Starting Server");
//			MyServiceImpl implementor = new MyServiceImpl();
//			String address = "http://localhost:10086/service/myservice";
//			Endpoint.publish(address, implementor);
			TestUtil.sp("Server published.");
			TestUtil.keepAlive();
			TestUtil.sp("Server closed.");
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
